﻿using System.Windows;
using System.Windows.Controls;

namespace zjx.Wpf.Graffitiboard.Adorners
{
    public class ResizeRotateChrome : Control
    {
        static ResizeRotateChrome()
        {
            FrameworkElement.DefaultStyleKeyProperty.OverrideMetadata(typeof(ResizeRotateChrome), new FrameworkPropertyMetadata(typeof(ResizeRotateChrome)));
        }

        public Visibility ChomeVisibility
        {
            get { return (Visibility)GetValue(ChomeVisibilityProperty); }
            set { SetValue(ChomeVisibilityProperty, value); }
        }

        // Using a DependencyProperty as the backing store for ChomeVisibility.  This enables animation, styling, binding, etc...
        public static readonly DependencyProperty ChomeVisibilityProperty =
            DependencyProperty.Register("ChomeVisibility", typeof(Visibility), typeof(ResizeRotateChrome), new PropertyMetadata(Visibility.Visible));
    }
}
